import VueRouter from 'vue-router';
import HomeContainer from './components/tabbar/HomeContainer.vue';
import VipContainer from './components/tabbar/VipContainer.vue';
import ShopContainer from './components/tabbar/ShopContainer.vue';
import SearchContainer from './components/tabbar/SearchContainer.vue';
import NewsList from './components/tabbar/NewsList.vue';
import Article from './components/subcomponents/Article.vue';
import PhotoSharing from './components/subcomponents/PhotoSharing.vue';
import ImgAndTxt from './components/subcomponents/ImgAndTxt.vue';
import ShopList from './components/subcomponents/ShopList.vue';
import GoodsInfo from './components/subcomponents/GoodsInfo.vue';
import ProductIntroduction from './components/subcomponents/ProductIntroduction.vue'
import ProductComments from './components/subcomponents/ProductComments.vue'
    var router = new VueRouter({
        routes:[
            {
                path:'/',
                redirect:'/home'
            },{
                path:'/home',
                component:HomeContainer
            },{
                path:'/home/newsList',
                component:NewsList
            },{
                path:'/vip',
                component:VipContainer
            },{
                path:'/shop',
                component:ShopContainer
            },{
                path:'/search',
                component:SearchContainer
            },{
                path:'/home/newsList/:id',
                component:Article
            },{
                path:'/home/photoSharing',
                component:PhotoSharing
            },{
                path:'/home/photoSharing/imgAndTxt/:id',
                component:ImgAndTxt
            },{
                path:'/home/shopList',
                component:ShopList
            },{
                path:'/home/shopList/goodsInfo/:id',
                component:GoodsInfo,
                name:'goodsinfo'
            },{
                path:'/home/shopList/goodsInfo/productIntroduction/:id',
                component:ProductIntroduction,
                name:'productintroduction'
            },{
                path:'/home/shopList/goodsInfo/productComments/:id',
                component:ProductComments,
                name:'productcomments'
            }
        ],
        linkActiveClass:'mui-active',
    });
export default router;